package com.vitabuybuy.tv.ui.mine.talent.notice.adapter

import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.vitabuybuy.tv.R
import com.vitabuybuy.tv.adaptebinding.ImageAdapter
import com.vitabuybuy.tv.databinding.ItemPic3Binding
import com.library.common.base.BindRecycAdapter

class VoucherAdapter : BindRecycAdapter<ItemPic3Binding, String>() {
    override fun onBindViewHolder(
        mBinding: ItemPic3Binding,
        itemData: String,
        holder: RecyclerView.ViewHolder,
        position: Int
    ) {
        ImageAdapter.setNomalImageUrl(
            mBinding.iv, itemData,
            ContextCompat.getDrawable(mContext, R.drawable.default_image)
        )
    }

    override fun normalViewId(viewType: Int): Int {
        return R.layout.item_pic_3
    }
}
